home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 411 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  968 b 

  1. Path: solon.com!not-for-mail
  2. From: thads@csn.net (Thad Smith)
  3. Newsgroups: comp.std.c,comp.lang.c.moderated
  4. Subject: Re: Integral promotion.
  5. Date: 16 Feb 1996 09:40:43 -0600
  6. Organization: T3 Systems
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4g28hr$qko@solutions.solon.com>
  10. References: <4fstj7$2l6@solutions.solon.com> <4fu835$9de@solutions.solon.com>
  11.  <4fvgrm$dv9@solutions.solon.com>
  12. Reply-To: ThadSmith@acm.org
  13. NNTP-Posting-Host: solutions.solon.com
  14.  
  15. In article <4fvgrm$dv9@solutions.solon.com>, msb@sq.com wrote:
  16. >Oh dear, I have to correct Chris Torek (torek@bsdi.com).  
  17.  
  18. >Thus even in ANSI C, if this function is called this way:
  19. >
  20. >    extern short p, q, r, test(short,short);
  21. >    r = test(p,q);
  22. >
  23. >the values from p and q are still converted from short to int and back
  24. >to short.  
  25.  
  26. I find nothing in the Standard that states that the arguments undergo
  27. integral promotions before being assigned to the function parameters.
  28.  
  29. Thad
  30.